global data 	"/Users/michaelalbertus/Dropbox/Research/Indigenous Communities in Peru/Paper on Recognition and Conflict/JCR/R&R/Replication files"
global results 	"/Users/michaelalbertus/Dropbox/Research/Indigenous Communities in Peru/Paper on Recognition and Conflict/JCR/R&R/Replication files"


**************** ANALYSIS

use "Enaho_CC.dta", clear

global out 			"lnGAS_t lnING_t anoedu2"


foreach outcome of varlist $out {

#delimit ;
foreach condition in 
"sample0_2==1 "
{;
#delimit cr

areg `outcome' i.t i.fecha_nac treat1 idorig mujer if `condition', absorb(comm_id) vce(cluster comm_id)
local Clusters `e(N_clust)'
outreg2 `outcome' using "DIDreal.xslx", excel bdec(3) append addtext(FE,`e(absvar)',Clusters,`Clusters',Year of birth FE,YES,District FE, YES, Sample, `condition') drop(i.fecha_nac)
}
}		

